package com.by.service.impl;

import com.by.bean.Audit;
import com.by.mapper.AuditMapper;
import com.by.service.AuditService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AuditServiceImpl implements AuditService {
    @Autowired
    AuditMapper auditMapper;

    @Override
    public int save(Audit audit) {
        return auditMapper.save(audit);
    }

    @Override
    public List query() {
        return auditMapper.query();
    }


    @Override
    public int updateStatus(Audit audit) {
        return auditMapper.updateStatus(audit);
    }


    @Override
    public String queryResult(String id) {
        return auditMapper.queryResult(id);
    }

    @Override
    public int updateResult(Audit audit) {
        return auditMapper.updateResult(audit);
    }
}
